package com.jmgd.cjlx.controller;

import com.jmgd.cjlx.service.MeTuanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mt")
public class MeTuanController {
    @Autowired
    MeTuanService meTuanService;

    //获取商品资料
    @RequestMapping(value = "/gwMedicineList", method = RequestMethod.GET)
    public String gwMedicineList() throws Exception {
        meTuanService.gwMedicineList();
        return "成功";
    }

    //获取商品资料
    @RequestMapping(value = "/gwMedicineListBusno", method = RequestMethod.GET)
    public String gwMedicineListBusno() throws Exception {
        meTuanService.gwMedicineListBusno();
        return "成功";
    }

    //获取门店详细资料
    @RequestMapping(value = "/getPoimget", method = RequestMethod.GET)
    public String getPoimget() throws Exception {
        meTuanService.poimget();
        return "成功";
    }

    //获取门店详细资料
    @RequestMapping(value = "/getPoimgetOther", method = RequestMethod.GET)
    public String getPoimgetOther() throws Exception {
        meTuanService.poimgetOther();
        return "成功";
    }


    //获取第三方门店和美团门店关系
    @RequestMapping(value = "/getPoiboundlist", method = RequestMethod.GET)
    public String getPoiboundlist() throws Exception {
        meTuanService.poiboundlist();
        return "成功";
    }

    @RequestMapping(value = "/actRetailDiscountList", method = RequestMethod.GET)
    public String gethdprice() throws Exception {
        meTuanService.actRetailDiscountList();
        return "成功";
    }

    @RequestMapping(value = "/gwMedicineGet", method = RequestMethod.GET)
    public String getWareDetial() throws Exception {
        meTuanService.gwMedicineGet();
        return "成功";
    }

    @RequestMapping(value = "/getRepurchaseList", method = RequestMethod.GET)
    public String getRepurchaseList() throws Exception {
        meTuanService.getRepurchaseList();
        return "成功";
    }

    @RequestMapping(value = "/actAllGetByAppPoiCodeAndType", method = RequestMethod.GET)
    public String actAllGetByAppPoiCodeAndType() throws Exception {
        meTuanService.actAllGetByAppPoiCodeAndType();
        return "成功";
    }

    @RequestMapping(value = "/actMarkupRepurchaseFoodList", method = RequestMethod.GET)
    public String actMarkupRepurchaseFoodList() throws Exception {
        meTuanService.actMarkupRepurchaseFoodList();
        return "成功";
    }


    @RequestMapping(value = "/actRetailDiscountListOther", method = RequestMethod.GET)
    public String actRetailDiscountListOther() throws Exception {
        meTuanService.actRetailDiscountListOther();
        return "成功";
    }


}
